
using System;
using System.ComponentModel.Design;
using System.Web.UI.WebControls;
using System.Security.Permissions;

namespace Org.Eurekaa.DNJ.Ext.UI.WebControls
{
    [SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
    public class ImageCollectionEditor : CollectionEditor
    {

        public ImageCollectionEditor(Type type)
            : base(type)
        {                        
        }

        protected override bool CanSelectMultipleInstances()
        {
            return false;
        }        
        protected override Type CreateCollectionItemType()
        {
            return typeof(Image);
        }

        protected override bool CanRemoveInstance(object value)
        {
            return true;
        }
        protected override Type[] CreateNewItemTypes()
        {
            return new Type[1] { typeof(Image) };
        }
         
    }

}



